import React from 'react';
import ReactDOM from 'react-dom';
let h1 = <div className='h1box'>
  呵呵呵
  <h2 className='h2' style={{color:'red'}}>哈哈哈</h2>
</div>

let  h2 = React.createElement('div',{
  className:'h1box'
},'呵呵呵',React.createElement('h2',{className:"h2",style:{color:'red'}},'哈哈哈'))

ReactDOM.render(h2,document.getElementById('root'))